package com.bit.www;

public class Dog {
    //变量/字段/
    private String name;
    private int age;
    private String color;
    //构造方法
    public Dog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }
//方法/行为
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void eat() {
        System.out.println(this.name + "正在吃饭....");
    }
    public void bark() {
        System.out.println(this.name +  "正在狗叫....");
    }
    public static void func() {
        System.out.println("执行静态变量...");
    }

    public static void main(String[] args) {

    }
}
